资源简介
本源码包含客户端 服务端 和登录进程源代码 可编译执行 是学习telnet的绝佳资料
代码片段和文件信息
/*-
* Copyright (c) 1991 The Regents of the University of California.
* All rights reserved.
*
* Redistribution and use in source and binary forms are permitted provided
* that: (1) source distributions retain this entire copyright notice and
* comment and (2) distributions including binaries display the following
* acknowledgement: ‘‘This product includes software developed by the
* University of California Berkeley and its contributors‘‘ in the
* documentation or other materials provided with the distribution and in
* all advertising materials mentioning features or use of this software.
* Neither the name of the University nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
* THIS SOFTWARE IS PROVIDED ‘‘AS IS‘‘ AND WITHOUT ANY EXPRESS OR IMPLIED
* WARRANTIES INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
#if 0 /* dead code */
/*
* From: @(#)authenc.c 5.1 (Berkeley) 3/1/91
*/
char authenc_rcsid[] =
“$Id: authenc.cv 1.5 1999/12/12 14:59:44 dholland Exp $“;
#if defined(ENCRYPT) || defined(AUTHENTICATE)
#include “telnetd.h“
#include
int
net_write(str len)
unsigned char *str;
int len;
{
if (nfrontp + len < netobuf + BUFSIZ) {
bcopy((void *)str (void *)nfrontp len);
nfrontp += len;
return(len);
}
return(0);
}
void
net_encrypt()
{
#if defined(ENCRYPT)
char *s = (nclearto > nbackp) ? nclearto : nbackp;
if (s < nfrontp && encrypt_output) {
(*encrypt_output)((unsigned char *)s nfrontp - s);
}
nclearto = nfrontp;
#endif
}
int
telnet_spin()
{
ttloop();
return(0);
}
char *
telnet_getenv(val)
char *val;
{
extern char *getenv();
return(getenv(val));
}
char *
telnet_gets(prompt result length echo)
char *prompt;
char *result;
int length;
int echo;
{
return((char *)0);
}
#endif
#endif /* 0 */
- 上一篇:2018最完整全球国家区号、国家手机号正则
- 下一篇:高分一号/二号数据批量解压
相关资源
- telnet-server-0.17-47.el6.x86_64和telnet和xi
- 封装的非常完善的socket类,支持服务
- ios 高仿网易新闻客户端
- 梦幻西游18角色源码
- cas-server4.2.7数据库配置相关文件以及
- telnet类库
- 博客文章《完成端口详解》配套代码
- FTP服务器与客户端设计与实现
- TCP聊天室,客户端,服务器
- 带服务端的IM即时通讯安卓APP应用
-
gba
se8a、8t数据库客户端管理工具G - Qt版的Rtsp客户端 源代码
- Thrift RPC客户端的服务化框架代码
- IOCP服务器、客户端终极网络聊天室代
- 客户端:FTP的设计与实现
- kuka机器人Ethernet的编程客户端软件
- win7版 H3C 华为客户端802.1X 破解版
- VC完整的电子邮件客户端收发邮件用到
- Modbus TCP通讯程序
- 从客户端调用capicom控件签名
- 控制台TCP通信程序
- socket服务端和客户端完整代码
- VNC-viewer客户端 for win32,绿色版
- 封装一个类搞定90%安卓客户端与服务
- sebek_win32客户端
- 最简RTSP客户端程序
- 智能小车QT远程客户端
- 视频小车QT客户端
- 支持多线程断点续传的文件传输(F
- ModbusTCP 客户端
评论
共有 条评论