Develop and Download Open Source Software

Browse Subversion Repository

Diff of /branches/ttcomtester/teraterm/teraterm/commlib.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3393 by maya, Tue May 12 14:26:30 2009 UTC revision 3494 by doda, Mon Jun 15 18:37:05 2009 UTC
# Line 289  void CommOpen(HWND HW, PTTSet ts, PComVa Line 289  void CommOpen(HWND HW, PTTSet ts, PComVa
289          cv->CodePage = &ts->CodePage;          cv->CodePage = &ts->CodePage;
290          cv->ConnetingTimeout = &ts->ConnectingTimeout;          cv->ConnetingTimeout = &ts->ConnectingTimeout;
291          cv->LastSendTime = time(NULL);          cv->LastSendTime = time(NULL);
292            cv->LineModeBuffCount = 0;
293            cv->Flush = FALSE;
294            cv->FlushLen = 0;
295            cv->TelLineMode = FALSE;
296    
297          if ((ts->PortType!=IdSerial) && (strlen(ts->HostName)==0))          if ((ts->PortType!=IdSerial) && (strlen(ts->HostName)==0))
298          {          {
# Line 299  void CommOpen(HWND HW, PTTSet ts, PComVa Line 303  void CommOpen(HWND HW, PTTSet ts, PComVa
303          switch (ts->PortType) {          switch (ts->PortType) {
304                  case IdTCPIP:                  case IdTCPIP:
305                          cv->TelFlag = (ts->Telnet > 0);                          cv->TelFlag = (ts->Telnet > 0);
306                            cv->TelLineMode = TRUE;
307                          if (! LoadWinsock()) {                          if (! LoadWinsock()) {
308                                  if (cv->NoMsg==0) {                                  if (cv->NoMsg==0) {
309                                          get_lang_msg("MSG_TT_ERROR", uimsg, sizeof(uimsg), "Tera Term: Error", ts->UILanguageFile);                                          get_lang_msg("MSG_TT_ERROR", uimsg, sizeof(uimsg), "Tera Term: Error", ts->UILanguageFile);
# Line 713  void CommClose(PComVar cv) Line 718  void CommClose(PComVar cv)
718          cv->InBuffCount = 0;          cv->InBuffCount = 0;
719          cv->OutPtr = 0;          cv->OutPtr = 0;
720          cv->OutBuffCount = 0;          cv->OutBuffCount = 0;
721            cv->LineModeBuffCount = 0;
722            cv->FlushLen = 0;
723            cv->Flush = FALSE;
724    
725          /* close port & release resources */          /* close port & release resources */
726          switch (cv->PortType) {          switch (cv->PortType) {

Legend:
Removed from v.3393  
changed lines
  Added in v.3494

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26