Click here to Skip to main content
15,898,222 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Notify Events When Event log is Full Pin
David Crow27-Jul-09 6:04
David Crow27-Jul-09 6:04 
QuestionDistribute application across network Pin
vikrant kpr27-Jul-09 5:10
vikrant kpr27-Jul-09 5:10 
QuestionBit of an odd one, vssver2, time_t and DWORD Pin
J4amieC27-Jul-09 4:43
J4amieC27-Jul-09 4:43 
AnswerRe: Bit of an odd one, vssver2, time_t and DWORD Pin
Rajesh R Subramanian27-Jul-09 7:11
professionalRajesh R Subramanian27-Jul-09 7:11 
GeneralRe: Bit of an odd one, vssver2, time_t and DWORD Pin
J4amieC27-Jul-09 23:02
J4amieC27-Jul-09 23:02 
GeneralRe: Bit of an odd one, vssver2, time_t and DWORD Pin
Rajesh R Subramanian28-Jul-09 5:36
professionalRajesh R Subramanian28-Jul-09 5:36 
QuestionHow to disable the Comport Error dialog? Pin
THAQCD27-Jul-09 4:05
THAQCD27-Jul-09 4:05 
QuestionSpecifying outgoing UDP port? Pin
Souldrift27-Jul-09 3:54
Souldrift27-Jul-09 3:54 
Hello,

I was wondering if it is possible to specify an OUTgoing port in a UDP connection.

I already created and used a connection


SOCKET	m_oUDPSocket;
SOCKADDR_IN m_oUDPAddress;

.
.
.

m_oUDPSocket = socket(AF_INET,SOCK_DGRAM,0);
memset(&m_oUDPAddress,0,sizeof(SOCKADDR_IN));
m_oUDPAddress.sin_family=AF_INET;
m_oUDPAddress.sin_port=htons(m_iClientPort);
m_oUDPAddress.sin_addr.s_addr=inet_addr(m_sClientIP.data()); 

.
.
.

int rc=sendto(m_oUDPSocket,(char*)packet,size+12,0,(SOCKADDR*)&m_oUDPAddress,sizeof(SOCKADDR_IN));



If I now wanted to make sure that my data is always sent FROM a certain port, how owuld I do that? Or how can I get the port from which it is actually sending (or has sent)?

Regards

Souldrift
AnswerRe: Specifying outgoing UDP port? Pin
Rathore Amit27-Jul-09 4:42
Rathore Amit27-Jul-09 4:42 
QuestionHow to delete a directory Pin
V K 227-Jul-09 2:54
V K 227-Jul-09 2:54 
AnswerRe: How to delete a directory Pin
Rajesh R Subramanian27-Jul-09 3:04
professionalRajesh R Subramanian27-Jul-09 3:04 
GeneralRe: How to delete a directory Pin
V K 227-Jul-09 3:12
V K 227-Jul-09 3:12 
GeneralRe: How to delete a directory Pin
Rajesh R Subramanian27-Jul-09 3:15
professionalRajesh R Subramanian27-Jul-09 3:15 
QuestionItem width of HeaderCtrl.. Pin
kumar sanghvi27-Jul-09 1:42
kumar sanghvi27-Jul-09 1:42 
AnswerRe: Item width of HeaderCtrl.. Pin
«_Superman_»27-Jul-09 2:03
professional«_Superman_»27-Jul-09 2:03 
AnswerRe: Item width of HeaderCtrl.. Pin
Iain Clarke, Warrior Programmer27-Jul-09 3:42
Iain Clarke, Warrior Programmer27-Jul-09 3:42 
Question[Message Deleted] Pin
sarita_21627-Jul-09 1:16
sarita_21627-Jul-09 1:16 
QuestionRe: serial communication in dilog based application in vc++ Pin
Chandrasekharan P27-Jul-09 1:24
Chandrasekharan P27-Jul-09 1:24 
AnswerRe: serial communication in dilog based application in vc++ Pin
sarita_21627-Jul-09 1:31
sarita_21627-Jul-09 1:31 
GeneralRe: serial communication in dilog based application in vc++ Pin
King Julien27-Jul-09 3:39
King Julien27-Jul-09 3:39 
GeneralRe: serial communication in dilog based application in vc++ Pin
sarita_21627-Jul-09 18:36
sarita_21627-Jul-09 18:36 
AnswerRe: serial communication in dilog based application in vc++ Pin
Iain Clarke, Warrior Programmer27-Jul-09 1:31
Iain Clarke, Warrior Programmer27-Jul-09 1:31 
Questionhelp on using VC++ libraries Pin
hareshel27-Jul-09 1:03
hareshel27-Jul-09 1:03 
AnswerRe: help on using VC++ libraries Pin
Adam Roderick J27-Jul-09 1:46
Adam Roderick J27-Jul-09 1:46 
GeneralRe: help on using VC++ libraries Pin
hareshel27-Jul-09 18:21
hareshel27-Jul-09 18:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.