Revision 2c702104 ml.c

View differences:

ml.c
196 196

  
197 197
}
198 198

  
199
socketID_handle string_To_socketID(char* socketID_string){
199
int string_To_SocketID(char* socketID_string, socketID_handle socketID){
200 200

  
201
  socketID_handle new_socketID = string_to_socketID(socketID_string);
202

  
203
  return new_socketID;
201
  int returnvalue = string_to_socketID(socketID_string, socketID);
204 202

  
203
  return returnvalue;
205 204
}
206 205

  
207 206
int get_Connection_status(int connectionID){
......
220 219
  return returnvalue;
221 220

  
222 221
}
222

  
223
//Added by Robert Birke as comodity functions
224

  
225
int print_SocketID(socketID_handle socketID) {
226
	return print_socketID(socketID);
227
}
228
int hash_SocketID(socketID_handle sock) {
229
   return hash_socketID(sock);
230
}
231

  
232
int compare_SocketIDs(socketID_handle sock1, socketID_handle sock2) {
233
	return compare_socketIDs(sock1,sock2);
234
}
235

  
236
int compare_SocketIDs_By_Port(socketID_handle sock1, socketID_handle sock2)
237
{
238
	if (sock1->internal_addr.udpaddr.sin_port !=
239
		 sock2->internal_addr.udpaddr.sin_port)
240
			return 1;
241

  
242
	if (sock1->external_addr.udpaddr.sin_port !=
243
		 sock2->external_addr.udpaddr.sin_port)
244
			return 1;
245

  
246
	return 0;
247
}

Also available in: Unified diff