Class to broadcast InfoLink objects via UDP to an InfoLinkReceiver. More...
Public Member Functions | |
| InfoLinkTransmitter () | |
| Creates am InfoLinkTransmitter to broadcast InfoLink objects via UDP on the default port. | |
| InfoLinkTransmitter (int port) | |
| Creates am InfoLinkTransmitter to broadcast InfoLink objects via UDP on the specified port. | |
| void | StartTransmitter () |
| Connect and start the transmitter thread. | |
| void | StopTransmitter () |
| Stop the transmitter thread and disconnect. | |
| void | Transmit (InfoLink infoLink) |
| Queue InfoLink object for broadcast. | |
| void | Transmit (InfoLink[] infoLinks) |
| Queue InfoLink objects for broadcast. | |
Properties | |
| bool | Running [get, set] |
| Indicates wether the transmitter thread is running. | |
| long | Errors [get] |
| Gets the number of errors which occured during transmission. | |
| long | Transmitted [get] |
| Gets the number of transmitted packets. | |
Class to broadcast InfoLink objects via UDP to an InfoLinkReceiver.
Definition at line 18 of file InfoLinkTransmitter.cs.
| NewGamePhysics.Networking.InfoLinkTransmitter.InfoLinkTransmitter | ( | ) |
Creates am InfoLinkTransmitter to broadcast InfoLink objects via UDP on the default port.
Definition at line 64 of file InfoLinkTransmitter.cs.
00065 { 00066 this.port = InfoLinkNetDefaultPort; 00067 }
| NewGamePhysics.Networking.InfoLinkTransmitter.InfoLinkTransmitter | ( | int | port | ) |
Creates am InfoLinkTransmitter to broadcast InfoLink objects via UDP on the specified port.
| port | The port to use. |
Definition at line 74 of file InfoLinkTransmitter.cs.
| void NewGamePhysics.Networking.InfoLinkTransmitter.StartTransmitter | ( | ) |
Connect and start the transmitter thread.
Definition at line 123 of file InfoLinkTransmitter.cs.
00124 { 00125 if (this.Connected) 00126 { 00127 this.Close(); 00128 } 00129 00130 this.Open(); 00131 this.transmitterThread = new Thread(new ThreadStart(RunTransmitterThread)); 00132 this.transmitterThread.Name = "InfoLink Transmitter"; 00133 this.transmitterThread.IsBackground = true; 00134 this.transmitterThread.Start(); 00135 }
| void NewGamePhysics.Networking.InfoLinkTransmitter.StopTransmitter | ( | ) |
Stop the transmitter thread and disconnect.
Definition at line 140 of file InfoLinkTransmitter.cs.
00141 { 00142 if (this.Connected) 00143 { 00144 this.Close(); 00145 } 00146 }
| void NewGamePhysics.Networking.InfoLinkTransmitter.Transmit | ( | InfoLink[] | infoLinks | ) |
Queue InfoLink objects for broadcast.
| infoLinks | The InfoLink objecst to transmit. |
Definition at line 165 of file InfoLinkTransmitter.cs.
| void NewGamePhysics.Networking.InfoLinkTransmitter.Transmit | ( | InfoLink | infoLink | ) |
Queue InfoLink object for broadcast.
| infoLink | The InfoLink object to transmit. |
Definition at line 152 of file InfoLinkTransmitter.cs.
long NewGamePhysics.Networking.InfoLinkTransmitter.Errors [get] |
Gets the number of errors which occured during transmission.
Definition at line 92 of file InfoLinkTransmitter.cs.
bool NewGamePhysics.Networking.InfoLinkTransmitter.Running [get, set] |
Indicates wether the transmitter thread is running.
Definition at line 83 of file InfoLinkTransmitter.cs.
long NewGamePhysics.Networking.InfoLinkTransmitter.Transmitted [get] |
Gets the number of transmitted packets.
Definition at line 102 of file InfoLinkTransmitter.cs.
1.6.2