| 45 | } |
| 46 | |
| 47 | func (c *Config) ConnectionOptionsSnapshot(originIP net.IP, previousAttempts uint8) *ConnectionOptionsSnapshot { |
| 48 | snapshot := c.featureSelector.Snapshot() |
| 49 | return &ConnectionOptionsSnapshot{ |
| 50 | client: pogs.ClientInfo{ |
| 51 | ClientID: c.ConnectorID[:], |
| 52 | Version: c.Version, |
| 53 | Arch: c.Arch, |
| 54 | Features: snapshot.FeaturesList, |
| 55 | }, |
| 56 | originLocalIP: originIP, |
| 57 | numPreviousAttempts: previousAttempts, |
| 58 | FeatureSnapshot: snapshot, |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | func (c ConnectionOptionsSnapshot) ConnectionOptions() *pogs.ConnectionOptions { |
| 63 | return &pogs.ConnectionOptions{ |