Logo
~Sockets~
~Examples~
~Contact~


udpclient.cpp File Reference

#include <StdoutLog.h>
#include <SocketHandler.h>
#include "UdpTestSocket.h"

Include dependency graph for udpclient.cpp:

Go to the source code of this file.


Functions

int main (int argc, char *argv[])

Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 6 of file udpclient.cpp.

00007 {
00008         SocketHandler h;
00009         StdoutLog log;
00010         h.RegStdLog(&log);
00011         UdpSocket s(h);
00012 
00013         s.SendTo("localhost", 5000, "Using SendTo with address to send");
00014         if (!s.Open("127.0.0.1", 5000))
00015         {
00016                 printf("Exiting...\n");
00017                 exit(-1);
00018         }
00019         for (int i = 0; i < argc; i++)
00020         {
00021                 s.Send(argv[i]);
00022         }
00023 }

Page, code, and content Copyright (C) 2006 by Anders Hedström
Generated on Mon Aug 29 20:21:47 2005 for C++ Sockets by  doxygen 1.4.4