The following picture is taken from the UNIX Network programming Volume One, the framework of this simple C/s programService-side Programs#include #include #include #include #include #include intMain () {intSFP,NFP;/ * Define two descriptors * / structSockaddr_in S_add,c_add;intSin_size;unsigned Shortportnum=0x8888;/ * Use port on server * / printf("Hello,welcome to my server!\r\n"); SFP = socket (af_inet, Sock_stream,0);if(-1= =
Program to read the content of the file and output it to the screen in reverse order # include # Include # Include # Define n 5000
Void main (){File * SFP;Int I;Char Buf [N];If (SFP = fopen ("C: \ datafile.txt", "R") = NULL){Printf ("source file cannot be opened! \ N ");Exit (1 );}I = 0;While (! Feof (SFP )){Buf [I ++] = fgetc (
the SFP pointer to the User-Defined signal processing function:
Void (* SFP) (INT );
The SFP type can be obtained by removing the SFP declared above, namely void (*) (INT ). In addition, the return value of the signal function is a pointer to the User-Defined signal processing function before the call
have previously defined a pointer SFP that points to a user-defined signal handler function:
void (*SFP) (int);
The type of SFP can be obtained by removing the SFP from the above declaration, Void (*) (int). In addition, the return value of the signal function is a pointer to the user-define
The composition of the e-mail system:1) Mail user agent (Mailuseragent,mua), MUA is a mail system client program that provides a user interface for reading, sending, and receiving e-mails. Most commonly used MUA has:linux mail,elm,pine and so on. Windows outlook,foxmail et 2) mail agent (mailtransferagent ,MTA) MTA responsible for the storage and forwarding of messages (storeandforward). MTA Monitor the user agent's request, locate the corresponding mail server based on the destination address
.
In case of protection, a VNC is enabled temporarily, so that sshd cannot be restarted without configuration. (Later I found it redundant, as long as I open a putty first and don't close it)
Follow these steps:
1) First add a maintenance account: msa
2) Then su-msa
3) ssh-keygen-t rsa
After specifying the Key Path and entering the password, the public key and private key are generated in/home/
to log on. Tap water for coffee has written a detailed tutorial, with its consent, reproduced as follows:
Configuring SSH Certificate logon authentication for CentOS
To help the company network management remote detection of mail server, a CentOS 5.1, using OpenSSH remote management. Check the security log, found that these days almost every day a bunch of IP to guess the password. It seems that we have to modify the login authentication mode, and change to certificate verification.
In case,
server through my own VPN. The settings are as follows:
# edit/etc/hosts.allow
vi/etc/hosts.allow
# For example, only allow 123.45.67.89 login
sshd:123.45.67.89
Linux SSH security Policy four: Login SSH with certificate
Using a certificate is more secure than using a password to log on. tap water for coffee has written a detailed tutorial, with its consent, reproduced as follows:
Configuring SSH Certificate logon authentication for CentOS
Source: Tap water for coffee
Afternoon to help
Cisco switch Product Name Description Catalyst nn xx [-C] [-M] [-A/-EN] NN is the serial number of the switch XX for A fixed configuration switch is the number of ports, for A modular switch, the number of slots C indicates that the fiber-optic interface M indicates that the modular www.2cto.com A and-EN respectively refer to the switch software as the standard board or Enterprise Edition. The WS-C2960-48PST-L structure is as follows: WS-C 2960-48 PST-LWS-C description this product is vswitch 29
1, provide MA5650 MA5626 firmware upgrade 312, and login password hack restore factory service. Oblique optical port old version ma562x, can do 1-23 isolation, 24 allied, 1-24 isolation, GE Optical port on the upper line, 1-24 to do vlan,ge light port tag upstreamStraight plug can do 24-port fool switch, 1-24 isolation, GE Optical port on the upper, 1-24 to do vlan,ge light port tag Uplink ma562x needs to be upgraded to version 308 using optical ports To achieve the
Catalyst NN XX [-c] [-m] [-a/-en]
NN is the serial number of the switchXX is the number of ports for a fixed-configured switch, which is the number of slots for a modular switchC logo indicates a fiber-optic interface withM-representation of modularityA and-en respectively refer to the switch software as either a standard board or an Enterprise edition.
The WS-C2960-48PST-L structure is as follows:
Ws-c 2960-48 Pst-l
Ws-c that this type of product
Often meet someone in the QQ group to ask about the product of Huawei's specific model number of the meaning of today's summary of the content to be posted for your reference.
LI (Lite software Image) indicates that the device is a weak feature version.
SI (Standard software Image) indicates that the device is a standard version and contains the underlying features.
EI (Enhanced software Image) indicates that the device is an enhanced version and contains some advanced features.
HI (Hyper softwa
Release date: 2012-04-10Updated on: 2012-04-28
Affected Systems:HP E5412 zl SwitchHP E5406 zl SwitchHP Management Module 5400 series zl switch J8726ADescription:--------------------------------------------------------------------------------Bugtraq id: 52990Cve id: CVE-2012-0133
HP ProCurve Switch is an enterprise-level network Switch.
HP ProCurve 5400 zl Switches has a security vulnerability in implementation. If a vswitch is connected to a virus-infected flash card, attackers can exploit this
The 3560X module has four options for configuration.1.4 Gigabit SFP C3KX-NM-1G2. Or 20 thousand mb sfp + C3KX-NM-10G3. Or 10 thousand mb sfp +, 2 Gigabit SFP C3KX-NM-10G4. or 2 10Gb-T, RJ45 interface C3KX-NM-10GT
WS-C3560X-48T-SCatalyst 3560X48 Port Data IP Base 1S356XVK9TN-15001SECAT 3560X ios universal no macsec w
GE switches are still commonly used. So I have studied the full performance solution of the mainstream L2 switches with all-optical ports. I would like to share this with you and hope it will be useful to you. Recently, the F-engine S2200F series all-optical ports, 10-Gigabit L2 switches and F-engine S2200G series all-optical ports, which are independently developed by beacon network, were officially introduced to the market, this is an important step in improving the Ethernet switch Product Lin
low address, where the sp pointer executes the last stack address used
Here we introduce the second pointer bp, which is used to represent local variables in the range of this function (this ghost bp is used to indicate the starting address of these local variables. Note that, the starting address does not include sfp and ret)
Bp and sp are based on the following operating mechanisms:
1. The called function first defines the original bp push as
media uplink Port has a two-port Ethernet port and a small pluggable (SFP) Gigabit Ethernet port, one of which is activated when used, but cannot be used at the same time. Network control and bandwidth optimization are achieved through advanced QoS, precise rate limiting, ACL, and multicast services. Network security through multiple authentication methods, data encryption technology, and network access control based on user, port and MAC address sim
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.