Click here to Skip to main content
15,915,093 members
Home / Discussions / C#
   

C#

 
QuestionHow to embed a URL in textbox Pin
GuyThiebaut29-Feb-08 11:17
professionalGuyThiebaut29-Feb-08 11:17 
AnswerRe: How to embed a URL in textbox Pin
Giorgi Dalakishvili29-Feb-08 11:30
mentorGiorgi Dalakishvili29-Feb-08 11:30 
GeneralRe: How to embed a URL in textbox Pin
GuyThiebaut29-Feb-08 11:33
professionalGuyThiebaut29-Feb-08 11:33 
AnswerRe: How to embed a URL in textbox Pin
Spacix One29-Feb-08 11:38
Spacix One29-Feb-08 11:38 
GeneralRe: How to embed a URL in textbox Pin
GuyThiebaut29-Feb-08 11:41
professionalGuyThiebaut29-Feb-08 11:41 
GeneralSocket Programming Pin
Saamir29-Feb-08 11:05
Saamir29-Feb-08 11:05 
GeneralRe: Socket Programming Pin
Spacix One29-Feb-08 11:30
Spacix One29-Feb-08 11:30 
GeneralRe: Socket Programming Pin
Saamir29-Feb-08 11:36
Saamir29-Feb-08 11:36 
no the service is installed on the server. It has run and currently runs great with no problems. What do you mean by coding horror? Also, the attached code is called by the timer. Here is the full function.

private void StartTimerAndServerSocket()
{
Writ2ErrLog("Service Timer Initialized");
string sErr="Application is ready for processing";
try
{
Writ2ErrLog(sErr);
m_tMonitor = new TD.Timer(new TD.TimerCallback(MonitorFunc),1, 0,45000);//45 sec

if(m_sServerAddr==string.Empty)
{
m_sServerAddr=Dns.GetHostName();
}
if(m_nPort==-1)
{
m_nPort=1024;
}

IPHostEntry hostEntry=Dns.Resolve(m_sServerAddr);
IPAddress ipAddress = hostEntry.AddressList[0];
IPEndPoint ipEndPoint = new IPEndPoint(ipAddress,m_nPort);
m_svSocket = new Socket(AddressFamily.InterNetwork,SocketType.Stream,ProtocolType.Tcp);
m_svSocket.Bind(ipEndPoint);
m_svSocket.Listen(10);

while(true)
{
Socket rtSocket=m_svSocket.Accept();
if(rtSocket.Connected)
{
TD.WaitCallback myCallBack = new TD.WaitCallback(ProcessClientRequest);
TD.ThreadPool.QueueUserWorkItem(myCallBack,rtSocket);
}
}
}
catch(Exception ex)
{
m_svSocket.Close();
m_tMonitor.Dispose();
sErr="Start Error " + ex.Message;
}
finally
{
if(sErr!=string.Empty)
{
Debug.WriteLine(sErr);
Writ2ErrLog(sErr);
}
}

Sameer

QuestionTextbox AutoCompleteCustomSource of classes Pin
cechode29-Feb-08 9:31
cechode29-Feb-08 9:31 
GeneralRe: Textbox AutoCompleteCustomSource of classes Pin
Not Active29-Feb-08 9:39
mentorNot Active29-Feb-08 9:39 
GeneralRe: Textbox AutoCompleteCustomSource of classes Pin
cechode29-Feb-08 9:45
cechode29-Feb-08 9:45 
GeneralRe: Textbox AutoCompleteCustomSource of classes Pin
Not Active29-Feb-08 9:50
mentorNot Active29-Feb-08 9:50 
GeneralRe: Textbox AutoCompleteCustomSource of classes Pin
cechode29-Feb-08 10:23
cechode29-Feb-08 10:23 
GeneralRe: Textbox AutoCompleteCustomSource of classes Pin
Not Active29-Feb-08 11:10
mentorNot Active29-Feb-08 11:10 
GeneralRe: Textbox AutoCompleteCustomSource of classes Pin
DaveyM6929-Feb-08 10:46
professionalDaveyM6929-Feb-08 10:46 
General"Executing" data file Pin
hain29-Feb-08 8:59
hain29-Feb-08 8:59 
AnswerRe: "Executing" data file Pin
Guffa29-Feb-08 9:42
Guffa29-Feb-08 9:42 
GeneralRe: "Executing" data file [modified] Pin
hain29-Feb-08 10:57
hain29-Feb-08 10:57 
GeneralLooping for 60 seconds Pin
jimmy2shoes29-Feb-08 8:16
jimmy2shoes29-Feb-08 8:16 
GeneralRe: Looping for 60 seconds Pin
Not Active29-Feb-08 8:38
mentorNot Active29-Feb-08 8:38 
GeneralSerialization Pin
geekfromindia29-Feb-08 7:09
geekfromindia29-Feb-08 7:09 
GeneralRe: Serialization Pin
Skippums29-Feb-08 7:14
Skippums29-Feb-08 7:14 
GeneralRe: Serialization Pin
geekfromindia29-Feb-08 10:40
geekfromindia29-Feb-08 10:40 
GeneralGps guided vehicle Pin
RED FOX29-Feb-08 6:53
RED FOX29-Feb-08 6:53 
Generaltimer for 5 seconds. Pin
tingu29-Feb-08 5:56
tingu29-Feb-08 5:56 

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.